package Tests;

import system.BlogSystem;

public class UserStoryFacade8 {
	
	private BlogSystem system = BlogSystem.getInstance();
	
	public void loadData(){
		
	}

	public void createProfile(String login, String senha, String nome_exibicao,
			String email, String sexo, String dataNasc, String endereco,
			String interesses, String quem_sou_eu, String filmes,
			String musicas, String livros) throws Exception {

		system.createUser(login, senha, nome_exibicao, email, sexo, dataNasc,
				endereco, interesses, quem_sou_eu, filmes, musicas, livros);
	}
	
	public String logon(String login, String senha) throws Exception {
		return system.login(login, senha);

	}
	public String getBlogByLogin(String login, int index) throws Exception{
		return system.getBlogByLogin(login, index);
	}
	public String getPost(String blogId,int index){
		return system.getPost(blogId, index);
	}
	public String addComment(String sessionId, String postId, String texto) throws Exception{

		return system.addComment(sessionId, postId, texto);
	}
	
	public String getNumberOfComments(String postId) throws Exception{
		return String.valueOf(system.getNumberOfComments(postId));
	}

	public String getComment(String postId, int index) throws Exception{
		return system.getComment(postId, index);
	}

	public String getCommentText(String commentId) throws Exception{
		return system.getCommentText(commentId);
	}

	public String getCommentAuthor(String commentId) throws Exception{
		return system.getCommentAuthor(commentId);
	}
	public void logoff(String idSession) throws Exception{
		system.logout(idSession);
	}
	public void saveData(){
		
	}

}
